package com.ge.boot03web.controller;

import com.ge.boot03web.bean.Person;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: SpringBoot
 * @BelongsPackage: com.ge.boot03web.controller
 * @Author: gejingyu
 * @Date: 2024/1/29
 * @Description: 测试内容协商
 */

@RestController
public class PersonController {

    @GetMapping("/person")
    public Person person(){
        Person person = new Person();
        person.setId(1L);
        person.setUserName("ZhangSan");
        person.setEmail("aaa@163.com");
        person.setAge(18);
        return person;
    }

}
